<div class="lista index">
    <h1># Edições</h1>
    <p>
    <?php
        /*echo $paginator->counter(array(
        'format' => __('P&aacute;gina %page% de %pages%, edi&ccedil;&otilde;es de %start% a %end% de %count%', true)
        ));*/
    ?>
    </p>
    <table style="border: none;">
    <?php foreach($edicoes as $edicao): ?>
        <tr>
            <th colspan="2" >
            <?php echo $html->link('Ediçao #'.$edicao['Edicao']['id'].' - '.$formatacao->data($edicao['Edicao']['created']),
                    array('action'=>'exibe','id'=>$edicao['Edicao']['id'])) ?></th>
        </tr>
        <tr>
            <td style="vertical-align: middle;">
                <div id="capa_edicao">
                <?php
                    $capa = 'arquivos/edicoes/'.$edicao['Edicao']['id'].'/capa.png';
                    echo $html->image('/'.$capa);
                ?>
                </div>
            </td>
            <td>
            <?php
                $textos = $edicao['Texto'];
                shuffle($textos);
                echo $this->element('lista_de_posts', array('textos'=>$textos));
            ?>
            </td>
        </tr>
    <?php endforeach; ?>
    </table>
</div>
<div class="paging">
    <?php echo $paginator->prev('<< '.__('anteriores', true), array(), null, array('class'=>'disabled'));?>
    | 	<?php echo $paginator->numbers();?>
    <?php echo $paginator->next(__('próximos', true).' >>', array(), null, array('class' => 'disabled'));?>
</div>